package com.cashoutgaming.shared.match;

import java.util.List;
import com.sencha.gxt.data.shared.loader.PagingLoadResult;

public class MatchPagingLoadResult implements PagingLoadResult<MatchDTO> {

	private static final long serialVersionUID = -7707469817389182143L;

	private List<MatchDTO> matches;
	private int total;
	private int offset;

	public MatchPagingLoadResult() {
		// required for Serializable
	}

	@Override
	public List<MatchDTO> getData() {
		return matches;
	}

	public void setData(List<MatchDTO> matches) {
		this.matches = matches;
	}

	@Override
	public int getTotalLength() {
		return total;
	}

	@Override
	public void setTotalLength(final int total) {
		this.total = total;
	}

	@Override
	public int getOffset() {
		return offset;
	}

	@Override
	public void setOffset(final int offset) {
		this.offset = offset;
	}
}
